﻿<%@ Page Title="Reservar Tour" Language="C#"  MasterPageFile="~/Presentacion/Template.Master" AutoEventWireup="true" CodeBehind="API_reservar_ReservarTour.aspx.cs" Inherits="UricaoWeb.Presentacion.API_reservar_ReservarTour" %>


<asp:Content runat="server" ID="Content1" ContentPlaceHolderID="TituloModulo">
    <div class="reserva"><h2>RESERVACION</h2></div>
</asp:Content>

<asp:Content runat="server" ID="Content2" ContentPlaceHolderID="OpcionesModulo">
   <div id='cssmenu'>
        <ul>
           <li class='has-sub'><a href="API_reservar_ConsultarReserva.aspx"><span>Consultar Reserva</span></a>
           </li>
            <li class='has-sub'><a href="API_reservar_ModificarReserva.aspx"><span>Modificar Reserva</span></a>
           </li>
           <li class='has-sub'><a href="API_reservar_RegistrarCliente.aspx"><span>Reservar Habitacion</span></a>
           </li>
            <li class='has-sub'><a href="API_reservar_ReservarServicios.aspx"><span>Reservar Servicios</span></a>
           </li>
        </ul>
    </div>   
    <!--<a href="http://localhost:11510/Presentacion/API_reservar_ConsultarReserva.aspx" target="_self" style="text-align:center;" class="button1r">Consultar Reserva</a>
            <a href="http://localhost:11510/Presentacion/API_reservar_ModificarReserva.aspx" target="_self" style="text-align:center;" class="button1r">Modificar Reserva </a>
            <a href="http://localhost:11510/Presentacion/API_reservar_RegistrarCliente.aspx" target="_self" style="text-align:center;" class="button1r">Reservar Habitacion</a>
            <a href="http://localhost:11510/Presentacion/API_reservar_ReservarServicios.aspx" target="_self" style="text-align:center;" class="button1r">Reservar Servicios</a>-->
</asp:Content>
<asp:Content runat="server" ID="Content3" ContentPlaceHolderID="ContenidoDelModulo">
    <form id="form1" runat="server">
    <h2>Reservar Tour</h2>
			<p class="color1">&nbsp;</p>
		    <div class="marker">
                <div class="wrapper">
                    <p class="pad_bot2">Codigo de Reserva:
                        <asp:TextBox ID="tbCodigoReservacion" runat="server" class="inputPersonalizado"></asp:TextBox>
                        &nbsp;&nbsp;&nbsp;
                        <asp:Button ID="bVerificar" runat="server" Text="Verificar" class="botonCualquiera" OnClick="Button3_Click"/>
                   </p>
                    <div class="marker">
                        <div class="wrapper">
                            <p class="pad_bot2">Cliente:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                        <asp:TextBox ID="tbCliente" runat="server" class="inputPersonalizado" ReadOnly="true" width="300"></asp:TextBox>
                        &nbsp;
                        </div>
                     </div>
                        <p class="pad_bot2">Tour:   &nbsp;    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
       
                    &nbsp;<asp:DropDownList ID="DropDownList1" runat="server" AutoPostBack="True" DataSourceID="ObjectDataSource1" class="comboPersonalizado" DataTextField="NombreTour" DataValueField="IdTour">
                        </asp:DropDownList>
                        <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" SelectMethod="ConsultarTours" TypeName="UricaoWeb.LogicaDeNegocios.Reservas.LogicaReservas"></asp:ObjectDataSource>
                        <asp:ObjectDataSource ID="ObjectDataSource2" runat="server" SelectMethod="ConsultarTour" TypeName="UricaoWeb.LogicaDeNegocios.Reservas.LogicaReservas">
                            <SelectParameters>
                                <asp:ControlParameter ControlID="DropDownList1" Name="_idTour" PropertyName="SelectedValue" Type="Int32" />
                            </SelectParameters>
                        </asp:ObjectDataSource>
                        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataSourceID="ObjectDataSource2" Height="166px" Width="540px">
                            <Columns>
                                <asp:BoundField DataField="DescripcionTour" HeaderText="DescripcionTour" SortExpression="DescripcionTour" />
                                <asp:BoundField DataField="PrecioTour" HeaderText="PrecioTour" SortExpression="PrecioTour" />
                            </Columns>
                        </asp:GridView>
                    <p class="pad_bot2">
                        <br/>

&nbsp;Cantidad de Personas:
                        <asp:TextBox ID="tbCantidadPersonas" runat="server" class="inputPersonalizado" type="number" min="0" max= "30" ></asp:TextBox>
&nbsp;</div>
            </div>
			<div class="wrapper" style="text-align: center;">
			    <asp:Button class="botonContinuar" ID="BRegresar" runat="server" Text="Regresar" OnClick="BRegresar_Click" OnClientClick="return confirm('¿Está seguro que desea regresar a la página principal?')" />&nbsp;&nbsp;&nbsp;
                <asp:Button class="botonRegresar" ID="BAceptar" runat="server" Text="Aceptar" OnClick="BAceptar_Click" Height="26px" OnClientClick="return confirm('¿Desea confirmar su operación?')" Width="100px" />
			</div>
    </form>
    
            
</asp:Content>